|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.vtp.framework.engine.http.DeploymentExecution
public class DeploymentExecution
A single execution on the HTTP connector.
| Constructor Summary | |
|---|---|
DeploymentExecution(java.lang.String id,
DeploymentSession session,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
java.util.Map parameterValues)
Creates a new DeploymentExecution. |
|
| Method Summary | |
|---|---|
void |
clearParameter(java.lang.String parameterName)
Clears the value of the parameter with the specified name. |
ILink |
createAbortLink()
|
ILink |
createNextLink()
|
ILink |
createResourceLink(java.lang.String path)
|
IDocument |
doAbort()
Generates the abort document and ends the interaction. |
IDocument |
doNext()
Generates the next document in the interaction. |
java.lang.String |
getExecutionID()
Returns the ID of the execution sequence being described. |
java.lang.String |
getParameter(java.lang.String parameterName)
Returns the value of the parameter with the specified name or null if no such parameter exists. |
java.lang.String[] |
getParameterNames()
Returns the names of the parameters available to the execution sequence. |
java.lang.String[] |
getParameters(java.lang.String parameterName)
Returns the values of the parameter with the specified name or null if no such parameter exists. |
IInteractionType |
getSelectedInteractionType()
|
java.lang.Object |
getService(java.lang.String identifier)
Returns the service selected for the specified identifier or null if no such service exists. |
java.lang.String[] |
getServiceIdentifiers()
Returns the identifiers of all the externally-provided services. |
boolean |
isEmpty()
|
ConversationCommand |
next()
|
ConversationCommand |
peek()
|
void |
setParameter(java.lang.String parameterName,
java.lang.String value)
Sets the value of the parameter with the specified name or clears it if the value is null. |
void |
setParameters(java.lang.String parameterName,
java.lang.String[] values)
Sets the values of the parameter with the specified name or clears them if the value is null or empty. |
void |
setUrlEncoded(boolean urlEncoded)
|
java.lang.Object |
visitExit(ExitCommand exitCommand)
Called when this visitor is passed to an exit command instance. |
java.lang.Object |
visitForward(ForwardCommand forwardCommand)
Called when this visitor is passed to a forward command instance. |
java.lang.Object |
visitInclude(IncludeCommand includeCommand)
Called when this visitor is passed to an include command instance. |
java.lang.Object |
visitRunnable(IRunnableCommand runnableCommand)
Called when passed to a runnable command. |
java.lang.Object |
visitUnknown(ICommand unknownCommand)
Called when an implementation-dependent visit method is not available. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeploymentExecution(java.lang.String id,
DeploymentSession session,
javax.servlet.http.HttpServletRequest httpRequest,
javax.servlet.http.HttpServletResponse httpResponse,
java.util.Map parameterValues)
id - The execution ID.session - The process session.httpRequest - The HTTP request.httpResponse - The HTTP response.| Method Detail |
|---|
public IDocument doNext()
public IDocument doAbort()
public java.lang.String getExecutionID()
IExecutionDescriptor
getExecutionID in interface IExecutionDescriptorpublic java.lang.String[] getParameterNames()
IExecutionDescriptor
getParameterNames in interface IExecutionDescriptor
public java.lang.String getParameter(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionDescriptornull if no such parameter exists.
getParameter in interface IExecutionDescriptorparameterName - The name of the parameter to return.
null if no such parameter exists.
java.lang.NullPointerException - If the specified parameter name is
null.
public java.lang.String[] getParameters(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionDescriptornull if no such parameter exists.
getParameters in interface IExecutionDescriptorparameterName - The name of the parameter to return.
null if no such parameter exists.
java.lang.NullPointerException - If the specified parameter name is
null.
public void setParameter(java.lang.String parameterName,
java.lang.String value)
throws java.lang.NullPointerException
IExecutionDescriptornull.
setParameter in interface IExecutionDescriptorparameterName - The name of the parameter to set.value - The value of the parameter with the specified name or
null to clear the value.
java.lang.NullPointerException - If the supplied parameter name is
null.
public void setParameters(java.lang.String parameterName,
java.lang.String[] values)
throws java.lang.NullPointerException
IExecutionDescriptornull or empty.
setParameters in interface IExecutionDescriptorparameterName - The name of the parameters to set.values - The values of the parameter with the specified name or
null or to clear the values.
java.lang.NullPointerException - If the supplied parameter name is
null.
public void clearParameter(java.lang.String parameterName)
throws java.lang.NullPointerException
IExecutionDescriptor
clearParameter in interface IExecutionDescriptorparameterName - The name of the parameter to clear.
java.lang.NullPointerException - If the supplied parameter name is
null.public java.lang.String[] getServiceIdentifiers()
IExecutionDescriptor
getServiceIdentifiers in interface IExecutionDescriptor
public java.lang.Object getService(java.lang.String identifier)
throws java.lang.NullPointerException
IExecutionDescriptornull if no such service exists.
getService in interface IExecutionDescriptoridentifier - The identifier of the service to return.
null if no such service exists.
java.lang.NullPointerException - If the supplied identifier is
null.public void setUrlEncoded(boolean urlEncoded)
setUrlEncoded in interface ILinkFactorypublic ILink createAbortLink()
createAbortLink in interface ILinkFactorypublic ILink createNextLink()
createNextLink in interface ILinkFactorypublic ILink createResourceLink(java.lang.String path)
createResourceLink in interface ILinkFactorypublic boolean isEmpty()
isEmpty in interface IRenderingQueuepublic ConversationCommand peek()
peek in interface IRenderingQueuepublic ConversationCommand next()
next in interface IRenderingQueue
public java.lang.Object visitRunnable(IRunnableCommand runnableCommand)
throws java.lang.NullPointerException
IRunnableCommandVisitor
visitRunnable in interface IRunnableCommandVisitorrunnableCommand - The command to visit.
java.lang.NullPointerException - If the supplied command is null.public java.lang.Object visitInclude(IncludeCommand includeCommand)
IControllerCommandVisitor
visitInclude in interface IControllerCommandVisitorincludeCommand - The include command this visitor was passed to.
public java.lang.Object visitExit(ExitCommand exitCommand)
IControllerCommandVisitor
visitExit in interface IControllerCommandVisitorexitCommand - The exit command this visitor was passed to.
public java.lang.Object visitForward(ForwardCommand forwardCommand)
IControllerCommandVisitor
visitForward in interface IControllerCommandVisitorforwardCommand - The forward command this visitor was passed to.
public java.lang.Object visitUnknown(ICommand unknownCommand)
throws java.lang.NullPointerException
ICommandVisitor
visitUnknown in interface ICommandVisitorunknownCommand - The command to visit.
java.lang.NullPointerException - If the supplied command is null.public IInteractionType getSelectedInteractionType()
getSelectedInteractionType in interface IInteractionTypeSelection
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||